import React from 'react';
import Sidebar from './Sidebar';

interface LayoutProps {
  children: React.ReactNode;
}

const Layout: React.FC<LayoutProps> = ({ children }) => {
  return (
    <div style={{ display: 'flex' }}>
      <Sidebar />
      <main style={{
        marginLeft: 240,
        minHeight: '100vh',
        background: '#f0f2f5',
        flex: 1
      }}>
        {children}
      </main>
    </div>
  );
};

export default Layout; 